package adv4;

import java.util.Calendar;

public class C2 {

	public static void main(String[] args) {
		Calendar c = Calendar.getInstance();
		System.out.println(c.getTime());
		c.set(2016, 1, 1);// 2018-2-1
		int days = c.getActualMaximum(Calendar.DAY_OF_MONTH);
		System.out.println(days);
		int d2 = c.getActualMaximum(Calendar.DAY_OF_YEAR);
		System.out.println(d2);
	}

}
